package com.chuzhiyun.chengguoxy.network;

import com.chuzhiyun.chengguoxy.utlis.StringUtils;

import java.util.ArrayList;
import java.util.List;

public class NetApi {
    public static final String Base_URL = "https://api.chengguoxy.top/";

    /*本机号码一键登录*/
    public static String postLoginOnePass() {
        return Base_URL + "auth/login/one-pass/";
    }

    /*验证码登录*/
    public static String postSMSLogin() {
        return Base_URL + "auth/login/sms-code/";
    }

    /*微信授权登录*/
    public static String postWXLogin() {
        return Base_URL + "auth/login/wx-code/";
    }

    /*发送短信验证码*/
    public static String postSendSMSCode() {
        return Base_URL + "auth/send-sms-code/";
    }

    /*绑定微信账号*/
    public static String postBindWeiChat() {
        return Base_URL + "auth/wx-bind/";
    }

    /*获取学生信息*/
    public static String getStudentInfo() {
        return Base_URL + "student/me/";
    }

    /*绑定学籍信息*/
    public static String postBindSchool() {
        return Base_URL + "student/me/bind/";
    }

    /*列举实习经历*/
    public static String getInternshipsList() {
        return Base_URL + "internship/student/internships/";
    }

    /*查看实习项目*/
    public static String getInternshipProject(String id) {
        return Base_URL + "internship/student/projects/" + id + "/";
    }

    /*提交请假记录*/
    public static String postLeaveInfo() {
        return Base_URL + "internship/student/days-off/";
    }

    /*查看请假list*/
    public static String getLeavedaysOffList() {
        return Base_URL + "internship/student/days-off/";
    }

    /*查看请假记录*/
    public static String getLeavedaysoffInfo(String id) {
        return Base_URL + "internship/student/days-off/" + id + "/";
    }

    /*修改请假记录*/
    public static String putLeavedaysoff(String id) {
        return Base_URL + "internship/student/days-off/" + id + "/";
    }

    /*列举实习经历*/
    public static String getProjectList() {
        return Base_URL + "internship/student/internships/";
    }

    /*查看实习经历*/
    public static String getProjectInfo(String id) {
        return Base_URL + "internship/student/internships/" + id + "/";
    }

    /*创建实习经历*/
    public static String postProjectInfo() {
        return Base_URL + "internship/student/internships/";
    }

    /*修改实习经历*/
    public static String putProjectInfo(String id) {
        return Base_URL + "internship/student/internships/" + id + "/";
    }

    /*获取补卡记录*/
    public static String getPunchList() {
        return Base_URL + "internship/student/punches/";
    }

    /*查看考勤日历*/
    public static String getAttendanceList() {
        return Base_URL + "internship/student/attendance/";
    }

    /*提交打卡*/
    public static String postPunches() {
        return Base_URL + "internship/student/punches/";
    }

    /*查看实习任务*/
    public static String getWorkTagsConfig(String tasks) {
        return Base_URL + "internship/student/tasks/" + tasks + "/";
    }

    /*列举实习任务提交*/
    public static String getTasksList(){
        return Base_URL+"internship/student/task-submissions/";
    }

    /*创建任务提交记录*/
    public static String postTasksInfo(){
        return Base_URL+"internship/student/task-submissions/";
    }

    /*查看任务提交内容*/
    public static String  getTaskInfo(String task){
        return Base_URL+"internship/student/task-submissions/"+task+"/";
    }

    /*补卡*/
    public static String postPunchFixes(){
        return Base_URL+"internship/student/punch-fixes/";
    }
}
